package com.yb.oldlearning;

import java.util.concurrent.Callable;

/**
 * 任务中产生返回值
 * @author Administrator
 */
public class TaskWithResult implements Callable<String>{
	private int id;
	public TaskWithResult(int id){
		this.id = id;
	}
	public String call(){
		return "result of TaskWithResult " + id; 
	}
}
